import request from "@/utils/request";

// 查询项目信息列表
export function listInfo(query) {
  return request({
    url: "/dmsIms/info/list",
    method: "get",
    params: query,
  });
}

// 查询项目信息简易列表
export function SimplelistInfo() {
  return request({
    url: "/dmsIms/info/splist",
    method: "get",
  });
}

// 查询项目信息详细
export function getInfo(id) {
  return request({
    url: "/dmsIms/info/" + id,
    method: "get",
  });
}

// 新增项目信息
export function addInfo(data) {
  return request({
    url: "/dmsIms/info",
    method: "post",
    data: data,
  });
}

// 修改项目信息
export function updateInfo(data) {
  return request({
    url: "/dmsIms/info",
    method: "put",
    data: data,
  });
}

// 删除项目信息
export function delInfo(id) {
  return request({
    url: "/dmsIms/info/" + id,
    method: "delete",
  });
}

// 查询项目是否能删除
export function canDel(ids) {
  return request({
    url: "/dmsIms/info/canDel/" + ids,
    method: "get",
  });
}
